<!DOCTYPE HTML>
<html  lang="zh" xmlns:th="http://www.thymeleaf.org">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-blog-edit" th:object="${blog}">
            <input id="blogid" name="blogid" th:field="*{blogid}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">博文名称：</label>
				<div class="col-sm-8">
					<input id="blogname" name="blogname" th:field="*{blogname}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">标签：</label>
				<div class="col-sm-8">
					<input id="blogtype" name="blogtype" th:field="*{blogtype}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">摘要：</label>
				<div class="col-sm-8">
					<input id="blogabstract" name="blogabstract" th:field="*{blogabstract}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">详情：</label>
				<div class="col-sm-8">
					<input id="blogdetail" name="blogdetail" th:field="*{blogdetail}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建人：</label>
				<div class="col-sm-8">
					<input id="creatuser" name="creatuser" th:field="*{creatuser}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">创建时间：</label>
				<div class="col-sm-8">
					<input id="creattime" name="creattime" th:field="*{creattime}" class="form-control" type="text">
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/blog"
		$("#form-blog-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			}
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-blog-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
